<?php
namespace app\admin\model;
use app\admin\BaseModel;
use think\facade\Request;

class User extends BaseModel
{
    public static function getVipList($where)
    {
        $param=Request::param();
        unset($param['page']);

        $list_vipList=User::where($where)->paginate([
            'list_rows' =>3,//每页数量
            'query' =>$param
        ]);


        $list_vipList=User::where($where)->paginate([
            'page'=>$list_vipList->currentPage(),
            'list_rows' =>3,//每页数量
            'query' =>$param
        ]);

        $page = $list_vipList->render();
        return [$list_vipList,$page];
    }

}